package com.qianji.mapper;

import com.qianji.pojo.ConsequenceDto;
import com.qianji.vo.ConsequenceAddVO;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created by 阳家桂 on 2021/3/12 15:31
 */
@Mapper
public interface ConsequenceMapper {
    //查询总条数
    Long count(ConsequenceDto consequenceDto);

    //查询抽奖结果
    List<ConsequenceDto> selectCon(ConsequenceDto consequenceDto);

    //添加抽奖结果
    Integer addCon(ConsequenceAddVO consequenceAddVO);

    //删除抽奖结果
    Integer deleteCon( String id);

    /**
     * 领取奖品
     * @param id
     * @return
     */
    Integer getPrize(Long id);

}
